package com.xiang.community.dto;

import lombok.Data;

/**
 * @author qixiangLi
 * @Date 2021/10/10
 */
@Data
public class PageResult {
    private long total;
    private Object data;

    private PageResult(){}

    public static final PageResult getInstance(long total,Object data){
        PageResult pageResult=new PageResult();
        pageResult.setTotal(total);
        pageResult.setData(data);
        return pageResult;
    }
}
